Optimal. Leaf size=101 \[ -\frac {4 i \sqrt {2} a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}+\frac {4 i a^2 \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 i a (a+i a \tan (c+d x))^{3/2}}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 101, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {3559, 3561,
212} \begin {gather*} -\frac {4 i \sqrt {2} a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}+\frac {4 i a^2 \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 i a (a+i a \tan (c+d x))^{3/2}}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 3559
Rule 3561
Rubi steps
\begin {align*} \int (a+i a \tan (c+d x))^{5/2} \, dx &=\frac {2 i a (a+i a \tan (c+d x))^{3/2}}{3 d}+(2 a) \int (a+i a \tan (c+d x))^{3/2} \, dx\\ &=\frac {4 i a^2 \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 i a (a+i a \tan (c+d x))^{3/2}}{3 d}+\left (4 a^2\right ) \int \sqrt {a+i a \tan (c+d x)} \, dx\\ &=\frac {4 i a^2 \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 i a (a+i a \tan (c+d x))^{3/2}}{3 d}-\frac {\left (8 i a^3\right ) \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\sqrt {a+i a \tan (c+d x)}\right )}{d}\\ &=-\frac {4 i \sqrt {2} a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}+\frac {4 i a^2 \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 i a (a+i a \tan (c+d x))^{3/2}}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.05, size = 140, normalized size = 1.39 \begin {gather*} -\frac {\sqrt {2} a^2 e^{-i (c+2 d x)} \sqrt {\frac {a e^{2 i (c+d x)}}{1+e^{2 i (c+d x)}}} \sqrt {1+e^{2 i (c+d x)}} (\cos (d x)+i \sin (d x)) \left (12 i \sinh ^{-1}\left (e^{i (c+d x)}\right )+\sqrt {1+e^{2 i (c+d x)}} \sec (c+d x) (-7 i+\tan (c+d x))\right )}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.16, size = 73, normalized size = 0.72
method | result | size |
derivativedivides | \(\frac {2 i a \left (\frac {\left (a +i a \tan \left (d x +c \right )\right )^{\frac {3}{2}}}{3}+2 a \sqrt {a +i a \tan \left (d x +c \right )}-2 a^{\frac {3}{2}} \sqrt {2}\, \arctanh \left (\frac {\sqrt {a +i a \tan \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )\right )}{d}\) | \(73\) |
default | \(\frac {2 i a \left (\frac {\left (a +i a \tan \left (d x +c \right )\right )^{\frac {3}{2}}}{3}+2 a \sqrt {a +i a \tan \left (d x +c \right )}-2 a^{\frac {3}{2}} \sqrt {2}\, \arctanh \left (\frac {\sqrt {a +i a \tan \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )\right )}{d}\) | \(73\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 101, normalized size = 1.00 \begin {gather*} \frac {2 i \, {\left (3 \, \sqrt {2} a^{\frac {7}{2}} \log \left (-\frac {\sqrt {2} \sqrt {a} - \sqrt {i \, a \tan \left (d x + c\right ) + a}}{\sqrt {2} \sqrt {a} + \sqrt {i \, a \tan \left (d x + c\right ) + a}}\right ) + {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}} a^{2} + 6 \, \sqrt {i \, a \tan \left (d x + c\right ) + a} a^{3}\right )}}{3 \, a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 271 vs. \(2 (74) = 148\).
time = 0.44, size = 271, normalized size = 2.68 \begin {gather*} \frac {2 \, {\left (3 \, \sqrt {2} \sqrt {-\frac {a^{5}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \log \left (\frac {4 \, {\left (a^{3} e^{\left (i \, d x + i \, c\right )} + \sqrt {-\frac {a^{5}}{d^{2}}} {\left (i \, d e^{\left (2 i \, d x + 2 i \, c\right )} + i \, d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{a^{2}}\right ) - 3 \, \sqrt {2} \sqrt {-\frac {a^{5}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \log \left (\frac {4 \, {\left (a^{3} e^{\left (i \, d x + i \, c\right )} + \sqrt {-\frac {a^{5}}{d^{2}}} {\left (-i \, d e^{\left (2 i \, d x + 2 i \, c\right )} - i \, d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{a^{2}}\right ) - 2 \, \sqrt {2} {\left (-4 i \, a^{2} e^{\left (3 i \, d x + 3 i \, c\right )} - 3 i \, a^{2} e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )}}{3 \, {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (i a \tan {\left (c + d x \right )} + a\right )^{\frac {5}{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.08, size = 84, normalized size = 0.83 \begin {gather*} \frac {a^2\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}\,4{}\mathrm {i}}{d}+\frac {a\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{3/2}\,2{}\mathrm {i}}{3\,d}-\frac {\sqrt {2}\,{\left (-a\right )}^{5/2}\,\mathrm {atan}\left (\frac {\sqrt {2}\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}}{2\,\sqrt {-a}}\right )\,4{}\mathrm {i}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________